/*     */ package src.tfhka;
/*     */ 
/*     */ import java.util.Date;
/*     */ import java.util.GregorianCalendar;
/*     */ 
/*     */ public class ReportData
/*     */ {
/*     */   private int numberOfLastZReport;
/*     */   private Date ZReportDate;
/*     */   private int numberOfLastInvoice;
/*     */   private Date lastInvoiceDate;
/*     */   private double freeSalesTax;
/*     */   private double generalRate1Sale;
/*     */   private double generalRate1Tax;
/*     */   private double reducedRate2Sale;
/*     */   private double reducedRate2Tax;
/*     */   private double additionalRate3Sal;
/*     */   private double additionalRate3Tax;
/*     */   private double freeTaxDevolution;
/*     */   private double generalRateDevolution;
/*     */   private double generalRateTaxDevolution;
/*     */   private double reducedRateDevolution;
/*     */   private double reducedRateTaxDevolution;
/*     */   private double additionalRateDevolution;
/*     */   private double additionalRateTaxDevolution;
/*     */   private int numberOfLastCreditNote;
/*     */ 
/*     */   public ReportData(String trama)
/*     */   {
/*  34 */     if (trama != null)
/*     */     {
/*  36 */       if (trama.length() == 176)
/*     */       {
/*  39 */         setNumberOfLastZReport(Integer.parseInt(trama.substring(0, 4)));
/*  40 */         GregorianCalendar cal = new GregorianCalendar();
/*  41 */         cal.set(Integer.parseInt(trama.substring(4, 6)) + 2000, Integer.parseInt(trama.substring(6, 8)) - 1, Integer.parseInt(trama.substring(8, 10)));
/*  42 */         setZReportDate(cal.getTime());
/*  43 */         setNumberOfLastInvoice(Integer.parseInt(trama.substring(10, 18)));
/*  44 */         cal.set(Integer.parseInt(trama.substring(18, 20)) + 2000, Integer.parseInt(trama.substring(20, 22)) - 1, Integer.parseInt(trama.substring(22, 24)), Integer.parseInt(trama.substring(24, 26)), Integer.parseInt(trama.substring(26, 28)));
/*  45 */         setLastInvoiceDate(cal.getTime());
/*     */ 
/*  48 */         double valor = Double.parseDouble(trama.substring(28, 36)) + Double.parseDouble(trama.substring(36, 38)) / 100.0D;
/*  49 */         setFreeSalesTax(valor);
/*  50 */         valor = Double.parseDouble(trama.substring(38, 46)) + Double.parseDouble(trama.substring(46, 48)) / 100.0D;
/*  51 */         setGeneralRate1Sale(valor);
/*  52 */         valor = Double.parseDouble(trama.substring(48, 56)) + Double.parseDouble(trama.substring(56, 58)) / 100.0D;
/*  53 */         setGeneralRate1Tax(valor);
/*  54 */         valor = Double.parseDouble(trama.substring(58, 66)) + Double.parseDouble(trama.substring(66, 68)) / 100.0D;
/*  55 */         setReducedRate2Sale(valor);
/*  56 */         valor = Double.parseDouble(trama.substring(68, 76)) + Double.parseDouble(trama.substring(76, 78)) / 100.0D;
/*  57 */         setReducedRate2Tax(valor);
/*  58 */         valor = Double.parseDouble(trama.substring(78, 86)) + Double.parseDouble(trama.substring(86, 88)) / 100.0D;
/*  59 */         setAdditionalRate3Sal(valor);
/*  60 */         valor = Double.parseDouble(trama.substring(88, 96)) + Double.parseDouble(trama.substring(96, 98)) / 100.0D;
/*  61 */         setAdditionalRate3Tax(valor);
/*  62 */         valor = Double.parseDouble(trama.substring(98, 106)) + Double.parseDouble(trama.substring(106, 108)) / 100.0D;
/*  63 */         setFreeTaxDevolution(valor);
/*  64 */         valor = Double.parseDouble(trama.substring(108, 116)) + Double.parseDouble(trama.substring(116, 118)) / 100.0D;
/*  65 */         setGeneralRateDevolution(valor);
/*  66 */         valor = Double.parseDouble(trama.substring(118, 126)) + Double.parseDouble(trama.substring(126, 128)) / 100.0D;
/*  67 */         setGeneralRateTaxDevolution(valor);
/*  68 */         valor = Double.parseDouble(trama.substring(128, 136)) + Double.parseDouble(trama.substring(136, 138)) / 100.0D;
/*  69 */         setReducedRateDevolution(valor);
/*  70 */         valor = Double.parseDouble(trama.substring(138, 146)) + Double.parseDouble(trama.substring(146, 148)) / 100.0D;
/*  71 */         setReducedRateTaxDevolution(valor);
/*  72 */         valor = Double.parseDouble(trama.substring(148, 156)) + Double.parseDouble(trama.substring(156, 158)) / 100.0D;
/*  73 */         setAdditionalRateDevolution(valor);
/*  74 */         valor = Double.parseDouble(trama.substring(158, 166)) + Double.parseDouble(trama.substring(166, 168)) / 100.0D;
/*  75 */         setAdditionalRateTaxDevolution(valor);
/*  76 */         setNumberOfLastCreditNote(Integer.parseInt(trama.substring(168, 176)));
/*     */       }
/*     */     }
/*     */   }
/*     */ 
/*     */   public int getNumberOfLastZReport()
/*     */   {
/*  84 */     return this.numberOfLastZReport;
/*     */   }
/*     */ 
/*     */   private void setNumberOfLastZReport(int numberOfLastZReport) {
/*  88 */     this.numberOfLastZReport = numberOfLastZReport;
/*     */   }
/*     */ 
/*     */   public Date getZReportDate()
/*     */   {
/*  94 */     return this.ZReportDate;
/*     */   }
/*     */ 
/*     */   private void setZReportDate(Date ZReportDate) {
/*  98 */     this.ZReportDate = ZReportDate;
/*     */   }
/*     */ 
/*     */   public int getNumberOfLastInvoice()
/*     */   {
/* 104 */     return this.numberOfLastInvoice;
/*     */   }
/*     */ 
/*     */   private void setNumberOfLastInvoice(int numberOfLastInvoice) {
/* 108 */     this.numberOfLastInvoice = numberOfLastInvoice;
/*     */   }
/*     */ 
/*     */   public Date getLastInvoiceDate()
/*     */   {
/* 114 */     return this.lastInvoiceDate;
/*     */   }
/*     */ 
/*     */   private void setLastInvoiceDate(Date lastInvoiceDate) {
/* 118 */     this.lastInvoiceDate = lastInvoiceDate;
/*     */   }
/*     */ 
/*     */   public double getFreeSalesTax()
/*     */   {
/* 124 */     return this.freeSalesTax;
/*     */   }
/*     */ 
/*     */   private void setFreeSalesTax(double freeSalesTax) {
/* 128 */     this.freeSalesTax = freeSalesTax;
/*     */   }
/*     */ 
/*     */   public double getGeneralRate1Sale()
/*     */   {
/* 134 */     return this.generalRate1Sale;
/*     */   }
/*     */ 
/*     */   private void setGeneralRate1Sale(double generalRate1Sale) {
/* 138 */     this.generalRate1Sale = generalRate1Sale;
/*     */   }
/*     */ 
/*     */   public double getGeneralRate1Tax()
/*     */   {
/* 144 */     return this.generalRate1Tax;
/*     */   }
/*     */ 
/*     */   private void setGeneralRate1Tax(double generalRate1Tax) {
/* 148 */     this.generalRate1Tax = generalRate1Tax;
/*     */   }
/*     */ 
/*     */   public double getReducedRate2Sale()
/*     */   {
/* 154 */     return this.reducedRate2Sale;
/*     */   }
/*     */ 
/*     */   private void setReducedRate2Sale(double reducedRate2Sale) {
/* 158 */     this.reducedRate2Sale = reducedRate2Sale;
/*     */   }
/*     */ 
/*     */   public double getReducedRate2Tax()
/*     */   {
/* 164 */     return this.reducedRate2Tax;
/*     */   }
/*     */ 
/*     */   private void setReducedRate2Tax(double reducedRate2Tax) {
/* 168 */     this.reducedRate2Tax = reducedRate2Tax;
/*     */   }
/*     */ 
/*     */   public double getAdditionalRate3Sal()
/*     */   {
/* 174 */     return this.additionalRate3Sal;
/*     */   }
/*     */ 
/*     */   private void setAdditionalRate3Sal(double additionalRate3Sal) {
/* 178 */     this.additionalRate3Sal = additionalRate3Sal;
/*     */   }
/*     */ 
/*     */   public double getAdditionalRate3Tax()
/*     */   {
/* 184 */     return this.additionalRate3Tax;
/*     */   }
/*     */ 
/*     */   private void setAdditionalRate3Tax(double additionalRate3Tax) {
/* 188 */     this.additionalRate3Tax = additionalRate3Tax;
/*     */   }
/*     */ 
/*     */   public double getFreeTaxDevolution()
/*     */   {
/* 194 */     return this.freeTaxDevolution;
/*     */   }
/*     */ 
/*     */   private void setFreeTaxDevolution(double freeTaxDevolution) {
/* 198 */     this.freeTaxDevolution = freeTaxDevolution;
/*     */   }
/*     */ 
/*     */   public double getGeneralRateDevolution()
/*     */   {
/* 204 */     return this.generalRateDevolution;
/*     */   }
/*     */ 
/*     */   private void setGeneralRateDevolution(double generalRateDevolution) {
/* 208 */     this.generalRateDevolution = generalRateDevolution;
/*     */   }
/*     */ 
/*     */   public double getGeneralRateTaxDevolution()
/*     */   {
/* 214 */     return this.generalRateTaxDevolution;
/*     */   }
/*     */ 
/*     */   private void setGeneralRateTaxDevolution(double generalRateTaxDevolution) {
/* 218 */     this.generalRateTaxDevolution = generalRateTaxDevolution;
/*     */   }
/*     */ 
/*     */   public double getReducedRateDevolution()
/*     */   {
/* 224 */     return this.reducedRateDevolution;
/*     */   }
/*     */ 
/*     */   private void setReducedRateDevolution(double reducedRateDevolution) {
/* 228 */     this.reducedRateDevolution = reducedRateDevolution;
/*     */   }
/*     */ 
/*     */   public double getReducedRateTaxDevolution()
/*     */   {
/* 234 */     return this.reducedRateTaxDevolution;
/*     */   }
/*     */ 
/*     */   private void setReducedRateTaxDevolution(double reducedRateTaxDevolution) {
/* 238 */     this.reducedRateTaxDevolution = reducedRateTaxDevolution;
/*     */   }
/*     */ 
/*     */   public double getAdditionalRateDevolution()
/*     */   {
/* 244 */     return this.additionalRateDevolution;
/*     */   }
/*     */ 
/*     */   private void setAdditionalRateDevolution(double additionalRateDevolution) {
/* 248 */     this.additionalRateDevolution = additionalRateDevolution;
/*     */   }
/*     */ 
/*     */   public double getAdditionalRateTaxDevolution()
/*     */   {
/* 254 */     return this.additionalRateTaxDevolution;
/*     */   }
/*     */ 
/*     */   private void setAdditionalRateTaxDevolution(double additionalRateTaxDevolution) {
/* 258 */     this.additionalRateTaxDevolution = additionalRateTaxDevolution;
/*     */   }
/*     */ 
/*     */   public int getNumberOfLastCreditNote()
/*     */   {
/* 264 */     return this.numberOfLastCreditNote;
/*     */   }
/*     */ 
/*     */   private void setNumberOfLastCreditNote(int numberOfLastCreditNote) {
/* 268 */     this.numberOfLastCreditNote = numberOfLastCreditNote;
/*     */   }
/*     */ }

/* Location:           C:\Users\javaOne\Documents\TfhkaJava.jar
 * Qualified Name:     tfhka.ReportData
 * JD-Core Version:    0.6.2
 */